package com.szrt.java.day20161222.wu.t02;

import java.util.Scanner;

public class Equipment {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int eid;		//资产编码
		String ename;	//名称
		float evalue;	//价格
		String emodel;	//型号
		int count;		//购买数量
		
		System.out.println("请输入资产编号：");
		eid = sc.nextInt();
		
		System.out.println("请输入资产名称：");
		ename = sc.next();
		
		System.out.println("请输入资产价格：");
		evalue = sc.nextFloat();
		
		System.out.println("请输入资产型号：");
		emodel = sc.next();
		
		System.out.println("请输入资产数量：");
		count = sc.nextInt();
		
		System.out.println("活动期间打85折，购买电脑信息，与总金额如下：");
		
		//总金额
		float sum = evalue * 0.85f * count ;
		
		System.out.println("你购买的电脑的信息为：");
		System.out.println("资产名称："+ename);
		System.out.println("单价为："+evalue);
		System.out.println("型号为："+emodel);
		System.out.println("购买总金额为："+sum);
		sc.close();
	}

}
